package com.ruoyi.web.controller.common;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class SwaggerRedirectController {

    @GetMapping("/prod-api/swagger-ui")
    public String redirectToSwaggerIndex1() {
        return "redirect:/swagger-ui/index.html";
    }

    @GetMapping("/prod-api/swagger-ui/")
    public String redirectToSwaggerIndex2() {
        return "redirect:/swagger-ui/index.html";
    }

    @GetMapping("/prod-api/swagger-ui/index.html")
    public String redirectToSwaggerIndex3() {
        return "redirect:/swagger-ui/index.html";
    }
}
